/**
 * Created by Administrator on 2017/10/31.
 */
import printMe from './print';
import "./index.css";
import { cube } from './main'

console.log(process.env);

function component() {
    var element = document.createElement("div");
    var btn = document.createElement("button");

    element.innerHTML = "5 cube is"+cube(5);

    btn.innerHTML = "Click Me!";
    btn.onclick = printMe;

    element.appendChild(btn);

    return element;
}

document.body.appendChild(component());

if(module.hot){
    module.hot.accept('./print.js',function () {
        console.log("upd22222ate print.js7777777");
        printMe();
    })
}